/*
 * @Author: liangliang
 * @Date: 2023-05-22 18:47:50
 * @LastEditors: yusha
 * @LastEditTime: 2023-08-25 10:07:39
 * @Description: 新增/修改需求登记信息
 */
import dayjs from 'dayjs';
import { Form, Input, Select, DatePicker } from 'antd';
import { useMount, useRequest } from 'ahooks';
import './index.scss';
import { useEffect, useState } from 'react';
import { getUsers } from '@/config/request/user';
import { qryBeeworkProduct } from '@/config/request/manage';

const EditSupplierInfo = (props: any) => {
    // const { runAsync: getUser } = useRequest(
    //   getUsers,
    //   {
    //     manual: true
    //   }
    // );
    const { formModal, rowItem, bugfix } = props;
    const { modal, form } = formModal;
    const [isRequiredDemandStatus, setIsRequiredDemandStatus] = useState(false);
    const [isRequiredDemandType, setIsRequiredDemandType] = useState(false);

    const [statusAndTypeRules, setStatusAndTypeRules] = useState(false);
    const [projectRules, setProjectRules] = useState(false);
    const demandTypeValue = Form.useWatch('demandType', form);
    const demandStatus = Form.useWatch('demandStatus', form);

    const [users, setUsers] = useState<any>([]);
    const [demandLineList, setDemandLineList] = useState<any>([]);
    const [initDemandName, setInitDemandName] = useState('');

    const changeSelectItem = (params: any) => {
        getUsers(params).then((res) => {
            setUsers(
                res?.data?.data.map((v) => {
                    return {
                        value: v?.dataName,
                        label: v?.dataName,
                    };
                })
            );
        });
    };

    useEffect(() => {
        if (demandTypeValue !== '项目' && demandStatus === '开发中') {
            setProjectRules(false);
            setStatusAndTypeRules(true);
            return;
        }
        if (demandTypeValue === '项目' && demandStatus === '开发中') {
            setStatusAndTypeRules(false);
            setProjectRules(true);
            return;
        }
        setStatusAndTypeRules(false);
        setProjectRules(false);

        const params = form.getFieldsValue();
        form.setFieldsValue({
            demandName: params.demandName ? params.demandName : initDemandName,
        });
        setInitDemandName('');
    }, [demandTypeValue, demandStatus, initDemandName]);

    useMount(() => {
        if (bugfix) {
            const { bugDescribe, bugFlower, tester, developer, ...rest } =
                rowItem;

            form.setFieldsValue({
                demandName: bugDescribe ? bugDescribe : '',
                // demandTest: bugFlower ? bugFlower : '',
                demandType: 'bugfix',
                demandStatus: '开发中',
                submitApplicationDate: dayjs(Date.now()),
                publishDate: dayjs(Date.now()),
                ...rest,
                demandPd: rowItem.demandPd ? rowItem.demandPd.split('、') : [],
                demandBackDevelop: rowItem.demandBackDevelop
                    ? rowItem.demandBackDevelop.split('、')
                    : [],
                demandPm: rowItem.demandPm ? rowItem.demandPm.split('、') : [],
                demandPtm: rowItem.demandPtm
                    ? rowItem.demandPtm.split('、')
                    : [],
                demandUi: rowItem.demandUi ? rowItem.demandUi.split('、') : [],
                demandFrontDevelop: rowItem.demandFrontDevelop
                    ? rowItem.demandFrontDevelop.split('、')
                    : [],
                demandTest: rowItem.demandTest
                    ? rowItem.demandTest.split('、')
                    : [],
                dataDevelop: rowItem.dataDevelop
                    ? rowItem.dataDevelop.split('、')
                    : [],
                demandOthers: rowItem.demandOthers
                    ? rowItem.demandOthers.split('、')
                    : [],
            });
        } else {
            const {
                bugTime,
                technicalProposalDate,
                technicalProposalDateStart,
                technicalProposalDateEnd,
                demandReviewDate,
                tcProposalDate,
                tcWriteDateStart,
                tcWriteDateDnd,
                submitApplicationDate,
                joinDebuggerDateStart,
                joinDebuggerDateEnd,
                testEnvironmentDateStart,
                testEnvironmentDateEnd,
                preEnvironmentDateStart,
                preEnvironmentDateEnd,
                publishDate,
                finalPublishDate,
                smokeDateStart,
                smokeDateEnd,
                demandStatus,
                demandType,
                developDateStart,
                developDateEnd,
                ...rest
            } = rowItem;

            form.setFieldsValue({
                // bugTime: dayjs(bugTime),
                technicalProposalDate: technicalProposalDate
                    ? dayjs(technicalProposalDate)
                    : '',
                technicalProposalDateStart: technicalProposalDateStart
                    ? dayjs(technicalProposalDateStart)
                    : '',
                technicalProposalDateEnd: technicalProposalDateEnd
                    ? dayjs(technicalProposalDateEnd)
                    : '',
                demandReviewDate: demandReviewDate
                    ? dayjs(demandReviewDate)
                    : '',
                tcProposalDate: tcProposalDate ? dayjs(tcProposalDate) : '',
                tcWriteDateStart: tcWriteDateStart
                    ? dayjs(tcWriteDateStart)
                    : '',
                tcWriteDateDnd: tcWriteDateDnd ? dayjs(tcWriteDateDnd) : '',
                submitApplicationDate: submitApplicationDate
                    ? dayjs(submitApplicationDate)
                    : '',
                joinDebuggerDateStart: joinDebuggerDateStart
                    ? dayjs(joinDebuggerDateStart)
                    : '',
                joinDebuggerDateEnd: joinDebuggerDateEnd
                    ? dayjs(joinDebuggerDateEnd)
                    : '',
                testEnvironmentDateStart: testEnvironmentDateStart
                    ? dayjs(testEnvironmentDateStart)
                    : '',
                testEnvironmentDateEnd: testEnvironmentDateEnd
                    ? dayjs(testEnvironmentDateEnd)
                    : '',
                preEnvironmentDateStart: preEnvironmentDateStart
                    ? dayjs(preEnvironmentDateStart)
                    : '',
                preEnvironmentDateEnd: preEnvironmentDateEnd
                    ? dayjs(preEnvironmentDateEnd)
                    : '',
                publishDate: publishDate ? dayjs(publishDate) : '',
                finalPublishDate: finalPublishDate
                    ? dayjs(finalPublishDate)
                    : '',
                smokeDateStart: smokeDateStart ? dayjs(smokeDateStart) : '',
                smokeDateEnd: smokeDateEnd ? dayjs(smokeDateEnd) : '',
                developDateStart: developDateStart
                    ? dayjs(developDateStart)
                    : '',
                developDateEnd: developDateEnd ? dayjs(developDateEnd) : '',
                demandStatus: demandStatus ? demandStatus : '',
                demandType: demandType ? demandType : '',
                ...rest,
                demandPd: rowItem.demandPd ? rowItem.demandPd.split('、') : [],
                demandBackDevelop: rowItem.demandBackDevelop
                    ? rowItem.demandBackDevelop.split('、')
                    : [],
                demandPm: rowItem.demandPm ? rowItem.demandPm.split('、') : [],
                demandPtm: rowItem.demandPtm
                    ? rowItem.demandPtm.split('、')
                    : [],
                demandUi: rowItem.demandUi ? rowItem.demandUi.split('、') : [],
                demandFrontDevelop: rowItem.demandFrontDevelop
                    ? rowItem.demandFrontDevelop.split('、')
                    : [],
                demandTest: rowItem.demandTest
                    ? rowItem.demandTest.split('、')
                    : [],
                dataDevelop: rowItem.dataDevelop
                    ? rowItem.dataDevelop.split('、')
                    : [],
                demandOthers: rowItem.demandOthers
                    ? rowItem.demandOthers.split('、')
                    : [],
                // technicalProposalDate: technicalProposalDate === null ? '' : (technicalProposalDate === '' ? '' :dayjs(technicalProposalDate)),
                // demandReviewDate: demandReviewDate === '' ? '' : dayjs(demandReviewDate),
                // tcProposalDate: tcProposalDate === null ? '' : dayjs(tcProposalDate),
                // submitApplicationDate: submitApplicationDate === null ? '' : dayjs(submitApplicationDate),
                // joinDebuggerDateStart: joinDebuggerDateStart === null ? '' : dayjs(joinDebuggerDateStart),
                // joinDebuggerDateEnd: joinDebuggerDateEnd === null ? '' : dayjs(joinDebuggerDateEnd),
                // testEnvironmentDateStart: testEnvironmentDateStart === null ? '' : dayjs(testEnvironmentDateStart),
                // testEnvironmentDateEnd: testEnvironmentDateEnd === null ? '' : dayjs(testEnvironmentDateEnd),
                // preEnvironmentDateStart: preEnvironmentDateStart === null ? '' : dayjs(preEnvironmentDateStart),
                // preEnvironmentDateEnd: preEnvironmentDateEnd === null ? '' : dayjs(preEnvironmentDateEnd),
                // publishDate: publishDate === null ? '' : dayjs(publishDate),
                // stageSettleType: rowItem?.stageSettleType ? rowItem?.stageSettleType : undefined
            });
            if (demandStatus === '测试中') {
                setIsRequiredDemandStatus(true);
            }

            if (['项目', '日常迭代', '快速需求'].includes(demandType)) {
                setIsRequiredDemandType(true);
            }
        }
    });

    const changeDemandStatus = (optionValue: string) => {
        if (optionValue === '测试中') {
            setIsRequiredDemandStatus(true);
        } else {
            setIsRequiredDemandStatus(false);
        }
        return optionValue;
    };

    const changeDemandLineValue = (optionValue: string) => {
        qryBeeworkProduct({ demandLine: optionValue }).then((res) => {
            setDemandLineList(
                res?.data?.data.map((v) => {
                    return {
                        value: v?.projectName + '@@' + v?.id,
                        label: v?.projectName,
                    };
                })
            );
        });
        return optionValue;
    };

    const changeDemandType = (optionValue: string) => {
        if (['项目', '日常迭代', '快速需求'].includes(optionValue)) {
            setIsRequiredDemandType(true);
        } else {
            setIsRequiredDemandType(false);
        }
        return optionValue;
    };

    const disabledDate = (current) => {
        return current.day() === 6 || current.day() === 0;
    };

    return (
        <>
            <Form
                name="editSupplierInfo"
                labelCol={{ span: 6 }}
                wrapperCol={{ span: 18 }}
                form={form}
            >
                <div>
                    <span className="form-span">需求信息:</span>
                    <hr />
                    <div className="form-item">
                        {/* 需求信息 */}
                        <Form.Item
                            label="需求名称"
                            name="demandName"
                            className="form-item-box"
                            rules={[
                                { required: true, message: '请输入需求名称' },
                            ]}
                        >
                            <Input.TextArea
                                rows={3}
                                placeholder="请输入需求名称"
                            />
                        </Form.Item>
                        <Form.Item
                            label="需求类型"
                            name="demandType"
                            className="form-item-box"
                            rules={[
                                { required: true, message: '请选择需求类型' },
                            ]}
                        >
                            <Select
                                placeholder="选择需求类型"
                                onChange={(optionValue) =>
                                    changeDemandType(optionValue)
                                }
                                options={[
                                    { value: '项目', label: '项目' },
                                    { value: '日常迭代', label: '日常迭代' },
                                    { value: '技改', label: '技改' },
                                    { value: '快速需求', label: '快速需求' },
                                    { value: '技术工具', label: '技术工具' },
                                    { value: 'bugfix', label: 'bugfix' },
                                ]}
                            />
                        </Form.Item>
                        <Form.Item
                            label="需求状态"
                            name="demandStatus"
                            className="form-item-box"
                            rules={[
                                { required: true, message: '请选择需求状态' },
                            ]}
                        >
                            <Select
                                placeholder="选择需求状态"
                                onChange={(optionValue) => {
                                    changeDemandStatus(optionValue);
                                }}
                                options={[
                                    { value: '开发中', label: '开发中' },
                                    { value: '测试中', label: '测试中' },
                                    { value: '待评审', label: '待评审' },
                                    { label: '已评审', value: '已评审' },
                                    { value: '已暂停', label: '已暂停' },
                                    { label: '已作废', value: '已作废' },
                                ]}
                            />
                        </Form.Item>
                        <Form.Item
                            label="所属业务线"
                            name="demandLine"
                            className="form-item-box"
                            rules={[
                                { required: true, message: '请选择业务线' },
                            ]}
                        >
                            <Select
                                placeholder="请选择业务线"
                                showSearch
                                onChange={(optionValue) => {
                                    changeDemandLineValue(optionValue);
                                }}
                                onFocus={() => {
                                    changeSelectItem({
                                        dataType: 'DEMAND_LINE',
                                    });
                                }}
                                options={users}
                            />
                        </Form.Item>
                        <Form.Item
                            label="关联项目"
                            name="beeworkProductName"
                            className="form-item-box"
                            rules={[{ required: true, message: '请输入' }]}
                        >
                            <Select
                                placeholder="请选择项目"
                                showSearch
                                onChange={(optionValue) => {
                                    setInitDemandName(
                                        optionValue.split('@@')[0]
                                    );
                                }}
                                options={demandLineList}
                            />
                        </Form.Item>
                        <Form.Item
                            label="所属业务方"
                            name="demandBusiness"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Input placeholder="请输入bug总数" />
                        </Form.Item>
                        <Form.Item
                            label="需求链接"
                            name="demoLink"
                            className="form-item-box"
                            rules={[
                                {
                                    required: isRequiredDemandType,
                                    message: '请输入',
                                },
                            ]}
                        >
                            <Input placeholder="请输入demo链接" />
                        </Form.Item>
                        <Form.Item
                            label="技术方案链接"
                            name="technicalSolutionsLink"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Input placeholder="请输入技术方案链接" />
                        </Form.Item>
                        <Form.Item
                            label="项目总结链接"
                            name="reviewLink"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Input placeholder="请输入项目总结链接" />
                        </Form.Item>
                    </div>
                    <span className="form-span">项目成员:</span>
                    <hr />
                    <div className="form-item">
                        {/* // 项目成员 */}
                        <Form.Item
                            label="项目PM"
                            name="demandPm"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            {/* <Input placeholder="请输入项目PM" /> */}
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataType: 'ROLE' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="项目PD"
                            name="demandPd"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'pd_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="项目PTM"
                            name="demandPtm"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'test_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="项目UI"
                            name="demandUi"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'ui_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="后端开发"
                            name="demandBackDevelop"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'back_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="前端开发"
                            name="demandFrontDevelop"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({
                                        dataCode: 'front_name',
                                    });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="测试人员"
                            name="demandTest"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'test_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="数据开发"
                            name="dataDevelop"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataCode: 'data_name' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                        <Form.Item
                            label="其他人员"
                            name="demandOthers"
                            className="form-item-box"
                            rules={[{ required: false, message: '请输入' }]}
                        >
                            <Select
                                showSearch
                                mode="multiple"
                                onFocus={() => {
                                    changeSelectItem({ dataType: 'ROLE' });
                                }}
                                options={users}
                            ></Select>
                        </Form.Item>
                    </div>
                    <span className="form-span">项目排期:</span>
                    <hr />
                    <div className="form-item">
                        {/* 项目排期 */}

                        <Form.Item
                            label="需求评审时间"
                            name="demandReviewDate"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="技术方案评审时间"
                            name="technicalProposalDate"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="技术方案开始时间"
                            name="technicalProposalDateStart"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="技术方案结束时间"
                            name="technicalProposalDateEnd"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="TC评审时间"
                            name="tcProposalDate"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="提测时间"
                            name="submitApplicationDate"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        isRequiredDemandStatus ||
                                        statusAndTypeRules ||
                                        projectRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="tc开始时间"
                            name="tcWriteDateStart"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="tc结束时间"
                            name="tcWriteDateDnd"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="开发开始时间"
                            name="developDateStart"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        false ||
                                        projectRules ||
                                        statusAndTypeRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="开发结束时间"
                            name="developDateEnd"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        false ||
                                        statusAndTypeRules ||
                                        projectRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="联调开始时间"
                            name="joinDebuggerDateStart"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="联调结束时间"
                            name="joinDebuggerDateEnd"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="冒烟开始时间"
                            name="smokeDateStart"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="冒烟结束时间"
                            name="smokeDateEnd"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>

                        <Form.Item
                            label="测试环境开始时间"
                            name="testEnvironmentDateStart"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        false ||
                                        statusAndTypeRules ||
                                        projectRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="测试环境结束时间"
                            name="testEnvironmentDateEnd"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        false ||
                                        statusAndTypeRules ||
                                        projectRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>

                        <Form.Item
                            label="预发环境开始时间"
                            name="preEnvironmentDateStart"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>
                        <Form.Item
                            label="预发环境结束时间"
                            name="preEnvironmentDateEnd"
                            className="form-item-box-50"
                            rules={[{ required: false || projectRules }]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>

                        <Form.Item
                            label="发布时间"
                            name="publishDate"
                            className="form-item-box-50"
                            rules={[
                                {
                                    required:
                                        isRequiredDemandStatus ||
                                        statusAndTypeRules ||
                                        projectRules,
                                },
                            ]}
                        >
                            <DatePicker
                                style={{ width: '50%' }}
                                disabledDate={disabledDate}
                            />
                        </Form.Item>

                        <Form.Item
                            label="是否延期"
                            name="isDeferred"
                            rules={[{ required: false, message: '请选择' }]}
                            className="form-item-box-50"
                        >
                            <Select
                                style={{ width: '50%' }}
                                placeholder="请选择"
                                options={[
                                    { value: '是', label: '是' },
                                    { value: '否', label: '否' },
                                ]}
                            />
                        </Form.Item>

                        {/* <Form.Item label="" name="" rules={[{ required: false, message: '请选择' }]} className="form-item-box-50" /> */}

                        <Form.Item
                            label="备注"
                            name="remark"
                            className="form-item-box-50"
                            rules={[{ required: false, message: '请输入备注' }]}
                        >
                            <Input.TextArea rows={5} placeholder="请输入备注" />
                        </Form.Item>

                        {/* <Form.Item label="最终发布时间" name="finalPublishDate" className="form-item-box-50" rules={[{ required: false }]}>
                            <DatePicker style={{ width: '50%' }} />
                        </Form.Item> */}
                    </div>
                </div>
            </Form>
        </>
    );
};

export default EditSupplierInfo;
